
<%@page import="comits.web.client.servlets.demo.*"%>
<%@page import="comits.business.tiers.metiers.ProduitStocke"%>
<%@page import="comits.business.tiers.metiers.*"%>
<%@page import="comits.business.tiers.dao.*"%>
<%@page import="comits.business.tiers.rp.*"%>
<%@page import="java.util.List"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="d"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql"%>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1" import="java.sql.*" errorPage=""%>

<!--<sql:setDataSource var="dataSource" driver="com.mysql.jdbc.Driver"
	url="jdbc:mysql://178.33.40.182:3306/comits_base" user="comits"
	password="AdiTheo" scope="session" />	-->

<sql:setDataSource var="dataSource" driver="com.mysql.jdbc.Driver"
	url="jdbc:mysql://localhost:3306/comits_base" user="root"
	password="admin" scope="session" />


<html>
<!-- DW6 -->
<head>

<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>Comits Web Client - CAlCULE DU STOCK SECU</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="mm_entertainment.css" type="text/css" />

<%
		
		int btq = (Integer) request.getAttribute("resultatBTQ");
		int pdt = (Integer) request.getAttribute("resultatPDT");
		int taux= (Integer) request.getAttribute("resultatTAUX");
		int nbmois= (Integer) request.getAttribute("resultatNBMOIS");
		int ss= (Integer) request.getAttribute("resultatSS");
		float couv= (Float) request.getAttribute("resultatCOUV");
	
%>



</head>
<body>





	<form name="monFormulaireres" action="StockSecuServlet" method="post">
		<table width="100%" border="0" cellspacing="0" cellpadding="0"
			align="center" border=1>
			<tr bgcolor="02021e">
				<td width="410" nowrap="nowrap"><img src="images/vin.jpg"
					width="400" height="140" border="0" /></td>
				<td colspan="2" valign="center" nowrap="nowrap" id="logo">OENOLOGISTICS</td>
			</tr>
			<tr>
				<td colspan="3" id="dateformat" height="30"><jsp:include
						page="menu.jsp" />
				</td>
			</tr>
			<tr>
				<td colspan="3" valign="top"><br />
					<table border="0" cellspacing="0" cellpadding="2" width="80%"
						align="center" border=1>
						<tr>
							<td class="subHeader" align="center">RESULTAT DU CALCUL DU
								STOCK DE SECURITE<br><br></td>
						</tr>
						<tr>
							<td>

								<table align="center" cellpadding="5" border="1" style="border-width: thin; border-collapse: collapse; border-style: solid; border-color: black;">
									<tr>
										<td>BOUTIQUE:</td>
										<td><input readonly="readonly" name="resultatBTQ"
											value="<%=btq%>" type="text" size="30" style="width: 122px;"
											align="middle">
											</td>
									</tr>
									<tr>
										<td>PRODUIT:</td>
										<td><input readonly="readonly" name="resultatPDT"
											value="<%=pdt%>" type="text" size="30" style="width: 122px;"
											align="middle"></td>
									</tr>
									<tr>
										<td style="height: 41px;">TAUX DE SERVICE:</td>
										<td style="width: 517px;"><input readonly="readonly"
											name="resultatTAUX" value="<%=taux%>" type="text" size="30"
											style="width: 122px;" align="middle"></td>
									</tr>
									<tr>
										<td>NB MOIS:<br> <i>(Nombre de mois pris en
												compte dans le calcul)</i></td>
										<td><input readonly="readonly" name="resultatNBMOIS"
											value="<%=nbmois%>" type="text" size="30"
											style="width: 122px;" align="middle"></td>
									</tr>
									<tr>
										<td>STOCK DE SECURITE:</td>
										<td><input readonly="readonly" name="resultatSS"
											value="<%=ss%>" type="text" size="30" style="width: 122px;"
											align="middle"> BOUTEILLES</td>
									</tr>
									<tr>
										<td>COUVERTURE</td>
										<td><input readonly="readonly" name="resultatCOUV"
											value="<%=couv%>" type="text" size="30" style="width: 122px;"
											align="middle"> JOURS</td>
									</tr>
								</table>
							</td>
						</tr>
					</table></td>
			</tr>
		</table>
	</form>
</body>
</html>


